export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/Login',
          },
        ],
      },
    ],
  },
  {
    path: '/welcome',
    name: '首页分析',
    icon: 'DashboardOutlined',
    component: './Welcome',
  },
  {
    path: '/admin',
    name: 'admin',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      {
        path: '/admin/sub-page',
        name: 'sub-page',
        icon: 'smile',
        component: './Welcome',
      },
    ],
  },
  {
    name: '分析大盘',
    path: '/Dashboard',
    icon: 'RiseOutlined',
    component: './Dashboard',
  }, // {
  //   name: '产品列表',
  //   path: '/Product',
  //   icon: 'BarsOutlined',
  //   component: './Product',
  // },
  {
    name: '数据源配置',
    path: '/DataSource',
    icon: 'DatabaseOutlined',
    component: './DataSource',
  },
  {
    name: '智能报表',
    path: '/Summary',
    icon: 'PieChartOutlined',
    component: './Summary',
  },
  {
    name: '人员管理',
    path: '/People',
    icon: 'UserOutlined',
    component: './People',
  }, // {
  //   name: '系统管理',
  //   path: '/System',
  //   icon: 'SettingOutlined',
  //   component: './System',
  // },
  {
    path: '/',
    redirect: '/Dashboard',
  },
  {
    path: '/account',
    name: '账户设置',
    icon: 'SettingOutlined',
    routes: [
      {
        name: '个人设置',
        icon: 'SettingOutlined',
        path: '/account/settings',
        component: './account/settings',
      },
    ],
  },
  {
    component: './404',
  },
];
